home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Ebooks / Thinking in C++ V2 / C05 / egcs.makefile < prev    next >
Encoding:
Makefile  |  2000-05-25  |  1.2 KB  |  66 lines

  1. # From Thinking in C++, 2nd Edition
  2. # At http://www.BruceEckel.com
  3. # (c) Bruce Eckel 1999
  4. # Copyright notice in Copyright.txt
  5. # Automatically-generated MAKEFILE 
  6. # For examples in directory C05
  7. # using the egcs compiler
  8. # Note: does not make files that will 
  9. # not compile with this compiler
  10. # Invoke with: make -f egcs.makefile
  11.  
  12. CPP = g++
  13. OFLAG = -o
  14. .SUFFIXES : .o .cpp .c
  15. .cpp.o :
  16.     $(CPP) $(CPPFLAGS) -c $<
  17. .c.o :
  18.     $(CPP) $(CPPFLAGS) -c $<
  19.  
  20. all: \
  21.     Public \
  22.     Private \
  23.     Friend \
  24.     NestFriend \
  25.     Class \
  26.     UseHandle 
  27.  
  28. test: all 
  29.     Public  
  30.     Private  
  31.     Friend  
  32.     NestFriend  
  33.     Class  
  34.     UseHandle  
  35.  
  36. bugs: 
  37.     @echo No compiler bugs in this directory!
  38.  
  39. Public: Public.o 
  40.     $(CPP) $(OFLAG)Public Public.o 
  41.  
  42. Private: Private.o 
  43.     $(CPP) $(OFLAG)Private Private.o 
  44.  
  45. Friend: Friend.o 
  46.     $(CPP) $(OFLAG)Friend Friend.o 
  47.  
  48. NestFriend: NestFriend.o 
  49.     $(CPP) $(OFLAG)NestFriend NestFriend.o 
  50.  
  51. Class: Class.o 
  52.     $(CPP) $(OFLAG)Class Class.o 
  53.  
  54. UseHandle: UseHandle.o Handle.o 
  55.     $(CPP) $(OFLAG)UseHandle UseHandle.o Handle.o 
  56.  
  57.  
  58. Public.o: Public.cpp 
  59. Private.o: Private.cpp 
  60. Friend.o: Friend.cpp 
  61. NestFriend.o: NestFriend.cpp 
  62. Class.o: Class.cpp 
  63. Handle.o: Handle.cpp Handle.h ../require.h 
  64. UseHandle.o: UseHandle.cpp Handle.h 
  65.  
  66.